package com.dc.dao.impl;

import com.dc.base.utils.BaseDao;
import com.dc.dao.UserDao;

import java.util.List;
import java.util.Map;

/**
 * Created by Acer on 2019/9/28.
 */
public class UserDaoImpl implements UserDao {
    BaseDao baseDao = new BaseDao();
    @Override
    public int addUser(String sql,Object[] params) {
        return baseDao.update(sql, params);
    }

    @Override
    public int updateUser(String sql,Object[] params) {
        return baseDao.update(sql,params);
    }

    @Override
    public int deleteUser(String sql) {
        return baseDao.update(sql);
    }

    @Override
    public List<Map<String, Object>> selectUser(String sql, Object[] params) {
        return baseDao.query(sql,params);
    }
}
